var runtime.physHugePageSize
24 uses
runtime (current package)
malloc.go#L353: physHugePageSize uintptr
malloc.go#L459: if physHugePageSize&(physHugePageSize-1) != 0 {
malloc.go#L460: print("system huge page size (", physHugePageSize, ") must be a power of 2\n")
malloc.go#L463: if physHugePageSize > maxPhysHugePageSize {
malloc.go#L468: physHugePageSize = 0
malloc.go#L470: if physHugePageSize != 0 {
malloc.go#L473: for 1<<physHugePageShift != physHugePageSize {
mem_linux.go#L65: if physHugePageSize != 0 {
mem_linux.go#L71: if uintptr(v)&(physHugePageSize-1) != 0 {
mem_linux.go#L73: head = alignDown(uintptr(v), physHugePageSize)
mem_linux.go#L75: if (uintptr(v)+n)&(physHugePageSize-1) != 0 {
mem_linux.go#L77: tail = alignDown(uintptr(v)+n-1, physHugePageSize)
mem_linux.go#L83: if head != 0 && head+physHugePageSize == tail {
mem_linux.go#L86: madvise(unsafe.Pointer(head), 2*physHugePageSize, _MADV_NOHUGEPAGE)
mem_linux.go#L90: madvise(unsafe.Pointer(head), physHugePageSize, _MADV_NOHUGEPAGE)
mem_linux.go#L93: madvise(unsafe.Pointer(tail), physHugePageSize, _MADV_NOHUGEPAGE)
mem_linux.go#L152: if physHugePageSize != 0 {
mem_linux.go#L154: beg := alignUp(uintptr(v), physHugePageSize)
mem_linux.go#L156: end := alignDown(uintptr(v)+n, physHugePageSize)
mgcscavenge.go#L981: if physHugePageSize > pageSize && physHugePageSize > physPageSize {
mgcscavenge.go#L988: pagesPerHugePage := uintptr(physHugePageSize / pageSize)
os_linux.go#L325: physHugePageSize = getHugePageSize()